var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;
var commentSchema = new Schema({
    name:String,
    id:String,
    cid:Number,
    avatar:String,
    content:{
        type:String
    },
    addData:{
        type:String
    },
    publish:{
        type:Date,
        default:Date.now
    }
});

var comment = mongoose.model('comment', commentSchema, 'comment');

module.exports = comment;